$(function(){
  dataJson.display="form"
  Formio.icons = 'fontawesome';
  Formio.createForm(document.getElementById('formio'), 
      
      dataJson
  ).then(function(form) {
      form.submission  = {
        data:data
      }
  }).then(function(){
    window.print();
    // window.onfocus=function(){ window.close();}
  });


})